var pageParam = null;

$(function() {
	$('#vue_vm_list div').hide();
	
	var pageParamStr = $.url().param('pageParam');
	var detailType = parseInt($.url().param('detailType'));
	var title = '详情';
	
	switch(detailType) {
		case 1:
			title = '人事规章详情';
			break;
		case 2:
			title = '岗位变动详情';
			break;
		case 3:
			title = '工作调度详情';
			break;
		case 4:
			title = '排班公告详情';
			break;
		case 5:
			title = '业务通知详情';
			break;
	}
	
	document.title = title;
	
	pageParam = JSON.parse(pageParamStr);
	showParamInfo(pageParam);
});

function showParamInfo(pageParam) {
	if($('#vue_vm_list').length==0) {return;}
	$('#vue_vm_list div').hide();
	$('#vue_vm_list').html(gl_vue_vm_list_html);
	
	new Vue({
		el: '#vue_vm_list',
		data: {
			todos: [pageParam]
		}
	});
	
	$('#vue_vm_list div').show();
}